import {defineStore} from "pinia"

const useBgStore = defineStore('bgStore', {
    state() {
        return {
            bgImgUrl: '',
        }
    },
    actions: {
        saveBgImgUrl(bgImgUrl) {
            this.bgImgUrl = bgImgUrl
        }
    },
    getters: {

    },
    persist: {
        enabled: true,
        strategies: [
            {
                key: 'bgStore',
                storage: window.localStorage,
                paths: ['bgImgUrl']
            }
        ]
    }
})

export default useBgStore